package com.duobaoyu.dby.supply.api.remote.feign;

import com.duobaoyu.dby.common.core.constant.SecurityConstants;
import com.duobaoyu.dby.common.core.util.R;
import com.duobaoyu.dby.supply.common.biz.remote.dto.rechargeinfo.PhoneOperatorQueryDTO;
import com.duobaoyu.dby.supply.common.biz.remote.to.rechargeinfo.PhoneOperatorTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author 1
 * <p>充值信息相关</p>
 */
@FeignClient(contextId = "remoteSupplyChainBizRechargeInfoService", value = "dby-supply-chain-biz-api")
public interface RemoteSupplyChainBizRechargeInfoService {

	@ApiOperation("查询手机号运营商和归属地")
	@GetMapping("/api/recharge-info/queryPhoneOperator")
	R<PhoneOperatorTO> queryPhoneOperator(@SpringQueryMap PhoneOperatorQueryDTO phoneOperatorQuery, @RequestHeader(SecurityConstants.FROM) String from);
}
